home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2108 / 2108.xpi / content / overlay.xul < prev    next >
Extensible Markup Language  |  2009-08-03  |  4KB  |  68 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://stylish/skin/overlay.css" type="text/css"?>
  4.  
  5. <!DOCTYPE overlay [
  6.     <!ENTITY % extensions SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd">
  7.     <!ENTITY % overlay SYSTEM "chrome://stylish/locale/overlay.dtd">
  8.     <!ENTITY % common SYSTEM "chrome://stylish/locale/common.dtd">
  9.     %extensions;
  10.     %overlay;
  11.     %common;
  12. ]>
  13.  
  14. <overlay id="stylish-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  15.  
  16.     <script type="application/javascript" src="common.js"/>
  17.     <script type="application/javascript" src="overlay.js"/>
  18.  
  19.     <stringbundleset id="stringbundleset">
  20.         <stringbundle id="stylish-strings" src="chrome://stylish/locale/overlay.properties"/>
  21.         <stringbundle id="stylish-common-strings" src="chrome://stylish/locale/common.properties"/>
  22.         <stringbundle id="stylish-url-strings" src="chrome://stylish/content/urls.properties"/>
  23.     </stringbundleset>
  24.  
  25.     <popupset id="mainPopupSet">
  26.         <menupopup id="stylish-popup" onpopupshowing="stylishOverlay.popupShowing(event)" onpopuphiding="stylishOverlay.clearStyleMenuItems(event)">
  27.             <menuitem id="stylish-manage" label="&managestyles;" accesskey="&managestyles.ak;" oncommand="stylishOverlay.openManage()"/>
  28.             <menuitem id="stylish-turn-on" label="&turnon;" accesskey="&turnon.ak;" oncommand="stylishOverlay.turnOnOff(true)"/>
  29.             <menuitem id="stylish-turn-off" label="&turnoff;" accesskey="&turnoff.ak;" oncommand="stylishOverlay.turnOnOff(false)"/>
  30.             <menuitem id="stylish-add-file" label="&addfile;" accesskey="&addfile.ak;" oncommand="stylishOverlay.installFromFile(event)"/>
  31.             <menuitem id="stylish-find-styles" label="&findstylebrowser;" accesskey="&findstylebrowser.ak;" oncommand="stylishOverlay.findStyle(event)" onclick="checkForMiddleClick(this, event)"/>
  32.             <menu id="stylish-write-style-menu" label="&writestyle;" accesskey="&writestyle.ak;">
  33.                 <menupopup onpopupshowing="stylishOverlay.writeStylePopupShowing(event)" onpopuphiding="stylishCommon.clearAllMenuItems(event)"/>
  34.             </menu>
  35.         </menupopup>
  36.         <menupopup id="stylish-style-context" onpopupshowing="stylishOverlay.showApplicableContextItems(event)">
  37.             <menuitem id="stylish-style-context-enable" label="&cmd.enable.label;" accesskey="&cmd.enable.accesskey;" oncommand="stylishOverlay.contextSetEnabled(true)" class="menuitem-non-iconic" default="true"/>
  38.             <menuitem id="stylish-style-context-disable" label="&cmd.disable.label;" accesskey="&cmd.disable.accesskey;" oncommand="stylishOverlay.contextSetEnabled(false)" class="menuitem-non-iconic" default="true"/>
  39.             <menuitem id="stylish-style-context-edit" label="&editstyle;" accesskey="&editstyle.ak;" oncommand="stylishOverlay.contextEdit()" class="menuitem-non-iconic"/>
  40.             <menuitem id="stylish-style-context-uninstall" label="&cmd.uninstall.label;" accesskey="&cmd.uninstall2.accesskey;" oncommand="stylishOverlay.contextDelete()" class="menuitem-non-iconic"/>
  41.         </menupopup>
  42.         <tooltip id="stylish-tooltip">
  43.             <label/>
  44.         </tooltip>
  45.     </popupset>
  46.  
  47.     <statusbar id="status-bar">
  48.         <statusbarpanel id="stylish-panel" class="statusbarpanel-menu-iconic" mousethrough="never" popup="stylish-popup" tooltip="stylish-tooltip" onclick="stylishOverlay.handleStatusClick(event)"/>
  49.     </statusbar>
  50.  
  51.     <toolbarpalette id="BrowserToolbarPalette">
  52.         <toolbarbutton id="stylish-toolbar-button" label="&stylish;" orient="horizontal" class="toolbarbutton-1" type="menu" popup="stylish-popup" tooltip="stylish-tooltip"/>
  53.     </toolbarpalette>
  54.  
  55.     <toolbarpalette id="MailToolbarPalette">
  56.         <toolbarbutton id="stylish-toolbar-button" label="&stylish;" orient="horizontal" class="toolbarbutton-1" type="menu" popup="stylish-popup" tooltip="stylish-tooltip"/>
  57.     </toolbarpalette>
  58.  
  59.     <broadcasterset id="mainBroadcasterSet">
  60.         <broadcaster id="viewStylishSidebar" autoCheck="false" label="&stylish;" type="checkbox" group="sidebar" sidebarurl="chrome://stylish/content/manage-standalone.xul?sidebar" sidebartitle="&stylish;" oncommand="toggleSidebar('viewStylishSidebar');"/>
  61.     </broadcasterset>
  62.  
  63.     <menupopup id="viewSidebarMenu">
  64.         <menuitem id="stylish-view-sidebar" observes="viewStylishSidebar"/>
  65.     </menupopup>
  66.  
  67. </overlay>
  68.